package com.heima.test11;

import java.net.DatagramSocket;
import java.net.SocketException;

public class ChatApp2 {
    public static void main(String[] args) throws SocketException {
        DatagramSocket ds = new DatagramSocket(15000);
        SendRunnable sr = new SendRunnable(ds, "192.168.13.34", 12000);
        ReceiveRunnable rr = new ReceiveRunnable(ds);
        new Thread(sr).start();
        new Thread(rr).start();
    }
}
